﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CanDoo.Core;
using CanDoo.Data;
using CanDoo.Contracts;
using CanDoo.Oil.Core.Models;
using CanDoo.Core.Data;

namespace CanDoo.Oil.Core.Contracts
{
    /// <summary>
    /// 业务契约——产品序列号
    /// </summary>
    public interface ISerialNumContract : IServiceBaseCore<SerialNum>, IServiceBase<SerialNum>
    {
        /// <summary>
        /// 批量从销售退货单序列号中删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        OperationResult DeleteFromSellOutBackByIds(long[] ids);

        /// <summary>
        /// 从销售退货单序列号中删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        OperationResult DeleteFromSellOutBack(long id);

        /// <summary>
        /// 批量从销售出库单序列号中删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        OperationResult DeleteFromSellOutStoreByIds(long[] ids);

        /// <summary>
        /// 从销售出库单序列号中删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        OperationResult DeleteFromSellOutStore(long id);

        /// <summary>
        /// 批量从采购退货单序列号中删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        OperationResult DeleteFromInBuyBackByIds(long[] ids);

        /// <summary>
        /// 从采购退货单序列号中删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        OperationResult DeleteFromInBuyBack(long id);
    }
}

